const util = require('./base/utils');
const Session = require('./SqlCommit/Session');
const Selector = require('./SqlCommit/Selector');

async function main() {
    let selector = new Selector();
    // true 表示不显示浏览器，所谓无头浏览器
    const session = await new Session(selector, false);
    let loginRes = await session.login(selector);
    if(loginRes === false) {
        console.log("登录失败");
    }
    await session.execute();
}

main().then(r => util.writeLog(r));